/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ModelLayer;

import DBLayer.MapName;

/**
 *
 * @author Moulde
 */
public class Car extends Product
{
    @MapName(ColumnName="Brand")
    private String brand;
    @MapName(ColumnName="Model")
    private String model;
    @MapName(ColumnName="CarID")
    private int carID;
    @MapName(ColumnName="Price")
    private double carPrice;
    @MapName(ColumnName="Doors")
    private int doors;
    @MapName(ColumnName="Year")
    private int year;
    @MapName(ColumnName="HK")
    private int hk;
    @MapName(ColumnName="Fuel")
    private String fuel;
    @MapName(ColumnName="Color")
    private String color;
    @MapName(ColumnName="EngineSize")
    private double engine;

    //// Product

    @MapName(ColumnName = "ID")
    private int productID;
    private int minStock;
    private int maxStock;
    private int quantity;
    private String description;
    private Supplier supplier;
    private int supplierID;
    @MapName(ColumnName="PurchasePrice")
    private double purchasePrice;
    private double salesPrice;

    ////

    public Car()
    {
    }

    public double getEngine() {
        return engine;
    }

    public void setEngine(double engine) {
        this.engine = engine;
    }

    public int getCarID() {
        return carID;
    }

    public void setCarID(int carID) {
        this.carID = carID;
    }

    public double getCarPrice() {
        return carPrice;
    }

    public void setCarPrice(double carPrice) {
        this.carPrice = carPrice;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getDoors() {
        return doors;
    }

    public void setDoors(int doors) {
        this.doors = doors;
    }

    public String getFuel() {
        return fuel;
    }

    public void setFuel(String fuel) {
        this.fuel = fuel;
    }

    public int getHk() {
        return hk;
    }

    public void setHk(int hk) {
        this.hk = hk;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    /**
     * Get the value of model
     *
     * @return the value of model
     */
    public String getModel()
    {
        return model;
    }

    /**
     * Set the value of model
     *
     * @param model new value of model
     */
    public void setModel(String model)
    {
        this.model = model;
    }


    /**
     * Get the value of brand
     *
     * @return the value of brand
     */
    public String getBrand()
    {
        return brand;
    }

    /**
     * Set the value of brand
     *
     * @param brand new value of brand
     */
    public void setBrand(String brand)
    {
        this.brand = brand;
    }


    /// product

        /**
     * Get the value of salesPrice
     *
     * @return the value of salesPrice
     */
    @Override
    public double getSalesPrice()
    {
        return salesPrice;
    }

    /**
     * Set the value of salesPrice
     *
     * @param salesPrice new value of salesPrice
     */
    @Override
    public void setSalesPrice(double salesPrice)
    {
        this.salesPrice = salesPrice;
    }

    /**
     * Get the value of purchasePrice
     *
     * @return the value of purchasePrice
     */
    @Override
    public double getPurchasePrice()
    {
        return purchasePrice;
    }

    /**
     * Set the value of purchasePrice
     *
     * @param purchasePrice new value of purchasePrice
     */
    @Override
    public void setPurchasePrice(double purchasePrice)
    {
        this.purchasePrice = purchasePrice;
    }

    /**
     * Get the value of supplierID
     *
     * @return the value of supplierID
     */
    @Override
    public int getSupplierID()
    {
        return supplierID;
    }

    /**
     * Set the value of supplierID
     *
     * @param supplierID new value of supplierID
     */
    @Override
    public void setSupplierID(int supplierID)
    {
        this.supplierID = supplierID;
    }

    /**
     * Get the value of ProductID
     *
     * @return the value of ProductID
     */
    @Override
    public int getProductID()
    {
        return productID;
    }

    /**
     * Set the value of ProductID
     *
     * @param ProductID new value of ProductID
     */
    @Override
    public void setProductID(int ProductID)
    {
        this.productID = ProductID;
    }

    /**
     * Get the value of minStock
     *
     * @return the value of minStock
     */
    @Override
    public int getMinStock()
    {
        return minStock;
    }

    /**
     * Set the value of minStock
     *
     * @param minStock new value of minStock
     */
    @Override
    public void setMinStock(int minStock)
    {
        this.minStock = minStock;
    }

    /**
     * Get the value of maxStock
     *
     * @return the value of maxStock
     */
    @Override
    public int getMaxStock()
    {
        return maxStock;
    }

    /**
     * Set the value of maxStock
     *
     * @param maxStock new value of maxStock
     */
    @Override
    public void setMaxStock(int maxStock)
    {
        this.maxStock = maxStock;
    }

    /**
     * Get the value of Quantity
     *
     * @return the value of Quantity
     */
    @Override
    public int getQuantity()
    {
        return quantity;
    }

    /**
     * Set the value of Quantity
     *
     * @param Quantity new value of Quantity
     */
    @Override
    public void setQuantity(int Quantity)
    {
        this.quantity = Quantity;
    }

    /**
     * Get the value of description
     *
     * @return the value of description
     */
    @Override
    public String getDescription()
    {
        return description;
    }

    /**
     * Set the value of description
     *
     * @param description new value of description
     */
    @Override
    public void setDescription(String description)
    {
        this.description = description;
    }

    /**
     * Get the value of supplier
     *
     * @return the value of supplier
     */
    @Override
    public Supplier getSupplier()
    {
        return supplier;
    }

    /**
     * Set the value of supplier
     *
     * @param supplier new value of supplier
     */
    @Override
    public void setSupplier(Supplier supplier)
    {
        this.supplier = supplier;
    }

    ///

}